package cn.yhbk.web.modules.manager.Pojo.DTO.Notice;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class TbNoticeDto {

    @ApiModelProperty("公告ID")
    @TableField("id")
    private String id;

    @ApiModelProperty("公告标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("公告内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("状态（1：正常，2：删除）")
    @TableField("status")
    private Byte status;

    @ApiModelProperty("发布时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("浏览量")
    @TableField("page_view")
    private Long pageView;

    @ApiModelProperty("发布者昵称")
    private String nickname;

}
